<?php
/**
 Tela de confirmação para a alteração de um servidor.
 */

// dados do servidor vindos de AlterarServidor.php
$servidorUsuario = $_POST['inputServidorNome'];
$servidorSenha = $_POST['servidorSenha'];
$servidorId = $_POST['inputServidorId']; // id do servidor cadastrado no banco de dados
$servidorCPF = $_POST['servidorCPF'];
$servidorSIAPE = $_POST['servidorSIAPE'];
$servidorPerfil = $_POST['tipoPerfil'];
?>
<html>
           <head>
           <title>SAEO - Confirmar Altera��o do Servidor</title>
           <link rel='stylesheet' type='text/css' href='templates/estilos.css'>
           </head>
     <body class='body'>
     <form name='confirmar_alteracao_servidor' action='EnviarDadosServidor.php?operacao=2' method='post'>
     <input type='hidden' name='servidorId' value='<?php echo $servidorId ?>'>
     <table width='779' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
            <tr>
				<td colspan='2'><?php include "Topo.php"; ?></td>
			</tr>
            <tr>
                <td><div class='titulosTabelas' style='width:779; height:20; background:url(templates/tabela.jpg)'>CONFIRMAR ALTERA��O DO FUNCION�RIO</div></td>
            </tr>
            <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
            <tr>
                <td><table class='tabela' width='650' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
                           <tr>
                               <td>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='15%'>&nbsp;Usu�rio:</td>
                               <td class='textoTabelas'><?php echo $servidorUsuario ?></td>
                               <input type='hidden' name='servidorUsuario' value='<?php echo $servidorUsuario ?>'>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='15%'>&nbsp;Senha:</td>
                               <td class='textoTabelas'><?php echo $servidorSenha ?></td>
                               <input type='hidden' name='servidorSenha' value='<?php echo $servidorSenha ?>'>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='15%'>&nbsp;CPF:</td>
                               <td class='textoTabelas'><?php echo $servidorCPF ?></td>
                               <input type='hidden' name='servidorCPF' value='<?php echo $servidorCPF ?>'>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='15%'>&nbsp;SIAPE:</td>
                               <td class='textoTabelas'><?php echo $servidorSIAPE ?></td>
                               <input type='hidden' name='servidorSIAPE' value='<?php echo $servidorSIAPE ?>'>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='15%'>&nbsp;Perfil:</td>
                               <?php 
                               switch ($servidorPerfil){
                                      case 0:
                                           $perfil = "Administrador";
                                           break;
                                      case 1:
                                           $perfil = "Funcion�rio";
                                           break;
                                      case 2:
                                           $perfil = "Diretor";
                                           break;
                                      case 3:
                                           $perfil = "DAP";
                                           break;
                                      case 4:
                                           $perfil = "Compras";
                                           break;
                                      case 5:
                                           $perfil = "Or�amento";
                                           break;
                                      }
                               ?>
                               <td class='textoTabelas'><?php echo $perfil ?></td>
                               <input type='hidden' name='servidorPerfil' value='<?php echo $servidorPerfil ?>'>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td colspan='2' height='46'><div style='position:relative;left:220px'><img style='width:100px;height:30px;cursor:pointer;' src='templates/btvoltar.JPG' onclick='javascript: history.go(-1);'>&nbsp
                               <input type='image' style='width:100px;height:30px;' src='templates/btalterar.JPG'/></div></td>
                           <tr>
                     </table>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tfoot>
           <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
                    <tr> 
					<?php include 'rodapeCreditos.php'; ?>
				   </tr>
            </tfoot>
     </table>
     </form>
     </body>
     </html>